Add sibling information to widget path string representations
authorMatthias Clasen <mclasen@redhat.com>
Sat, 18 Jun 2011 16:36:38 +0000 (12:36 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 18 Jun 2011 16:36:38 +0000 (12:36 -0400)
gtk/gtkwidgetpath.c

index bdbb7d0b2d4c237d7cd2a03a4aa8ae7fdea0b279..d0be6de63ede6af699fdd5ca71ae24ecf3ab6fc5 100644 (file)
@@ -328,6 +328,12 @@ gtk_widget_path_to_string (const GtkWidgetPath *path)
           g_string_append_c (string, ')');
         }
 
+
+      if (elem->siblings)
+        g_string_append_printf (string, "[%d/%d]",
+                                elem->sibling_index,
+                                gtk_widget_path_length (elem->siblings));
+
       if (elem->classes)
         {
           for (j = 0; j < elem->classes->len; j++)